package com.springboot.cloud.demos.entity.form;

import com.springboot.cloud.common.web.entity.form.BaseForm;
import com.springboot.cloud.demos.entity.po.AddressInfo;
import com.springboot.cloud.demos.entity.po.Coupon;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel
@Data
public class CouponForm extends BaseForm<Coupon> {
    private String id;        // 用户id
    private String title;        // 用户id
    private String levelId;
    private String type = "1";
    private BigDecimal withAmount;//满多少
    private BigDecimal usedAmount;//减多少
    private Integer quota;//发型量
    private Integer takeCount;//领取量
    private Integer usedCount;//使用量

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date validStartTime;//开始使用时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date validEndTime;//结束使用时间
}
